package my.webservices;

import java.rmi.Remote;
import java.rmi.RemoteException;

import my.webservices.beans.AddVehicleHistoryRequest;
import my.webservices.beans.AddVehicleHistoryResponse;
import my.webservices.beans.VehicleHistorySearchRequest;
import my.webservices.beans.VehicleHistorySearchResponse;



/**
 * VehicleHistoryService is a web service providing vehicle history information
 * based on the vehilce's vin number.
 * 
 * @author Nilaksh Bajpai.
 */
public interface VehicleHistoryService extends Remote {

    /**
     * Gets a vehicle's history based on the passed input. Input includes
     * requester's login, password and vehicle's vin number.
     * 
     * @param input
     *            a pojo containing requested info.
     * @return an array of vehicle history search cus dto's.
     * @throws RemoteException
     *             if a remote exception occurs.
     */
    VehicleHistorySearchResponse getVehicleHistory(VehicleHistorySearchRequest input) throws RemoteException;
    
    AddVehicleHistoryResponse addVehicleHistory(AddVehicleHistoryRequest input);

}
